<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>search result</title>
    </head>
    <body>
        <div class="body">
            <h1>搜尋結果</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            
            <table>
            <tr><td>姓名</td><td>項目</td></tr>
			<g:each var="person" in="${people}">
			<tr>
				<td><g:link action="show" id="${person.id}">${person.name}</g:link></td>
				<td>
					<g:each var="tag" in="${person.sportTags}">
						${tag.sport.name}<br/>
					</g:each>
				</td>
			</tr>
			</g:each>
			</table>

        </div>
    </body>
</html>
